package exam10;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/30
 */
public abstract class Visitor{
    protected String name;

    public void setName(String name){
        this.name=name;
    }

    public abstract void visit(Apple apple);

    public abstract void visit(Book book);
}

